package com.hzw.saas.web.app.old.storage.param;

import java.io.Serializable;
import javax.validation.constraints.NotBlank;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @author zzl
 * @since 02/26/2021
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
// @ApiModel("目录创建参数")
public class ResourceFolderPostParam implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 父目录ID，特殊：0-根目录
     */
    @ApiModelProperty(value = "父目录ID, 特殊：0-根目录", position = 2, required = true)
    @NotBlank(message = "父目录ID不可为空")
    private String folderId;

    /**
     * 相对于父目录的路径
     */
    @ApiModelProperty(value = "相对于父目录的路径，若目录已存在，则不会重复创建。e.g. path=saas/user, 在指定目录下创建两级目录；path=saas,在指定目录下创建目录saas", position = 3, required = true)
    @NotBlank(message = "路径不可为空")
    private String path;

}
